package com.youlu.campus.entity.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 合单组合Domain
 */
@Getter
@Setter
public class SingleCombineDomain implements Comparable<SingleCombineDomain> {
    private List<String> array;
    private Integer len;

    /**
     * 长度逆序排序
     *
     * @param o
     * @return
     */
    @Override
    public int compareTo(SingleCombineDomain o) {
        return -this.len.compareTo(o.getLen());
    }
}
